import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: () => import('../components/login') // 登录页面
    },
    // my我的
    {
      path: '/agencyImpInfo',
      name: 'agencyImpInfo',
      component: () => import('../components/my/agencyImpInfo') // 完善个人信息
    },
    {
      path: '/my/index',
      name: 'myIndex',
      component: () => import('../components/my') // 主页
    },
    // 首页
    {
      path: '/index',
      name: 'index',
      component: () => import('../components/index')
    },
    // 教师信息修改
    {
      path: '/teacherEdit',
      name: 'teacherEdit',
      component: () => import('../components/my/teacherEdit')
    },
    // 临时改课
    {
      path: '/change_courses',
      name: 'change_courses',
      component: () => import('../components/my/change_courses')
    },
    // 学生信息
    {
      path: '/studentEdit',
      name: 'studentEdit',
      component: () => import('../components/my/studentEdit')
    },
    {
      path: '/select/student/list',
      name: 'selectStudentList',
      component: () => import('../components/index/selectStudentList') // 选择学生列表
    },
    {
      path: '/studentList',
      name: 'studentList',
      component: () => import('../components/my/studentList') // 学生列表
    },
    // 打卡记录
    {
      path: '/studentCheck',
      name: 'studentCheck',
      component: () => import('../components/my/studentCheck')
    },
    // 催缴学费 urge
    {
      path: '/urge',
      name: 'urge',
      component: () => import('../components/my/urge')
    },
    // 签到记录  leaveList
    {
      path: '/leaveList',
      name: 'leaveList',
      component: () => import('../components/leaveList/leaveList')
    },
    // VIP签到记录  leaveVip
    {
      path: '/leaveVip',
      name: 'leaveVip',
      component: () => import('../components/leaveList/leaveVip')
    },
    // 集体签到记录 leaveCollective
    {
      path: '/leaveCollective',
      name: 'leaveCollective',
      component: () => import('../components/leaveList/leaveCollective')
    },
    // VIP签到记录 单个学生签到记录列表 studentSign
    {
      path: '/studentSign',
      name: 'studentSign',
      component: () => import('../components/leaveList/studentSign')
    },
    // 集体签到记录 单个课程学生签到记录 collectiveSing
    {
      path: '/collectiveSing',
      name: 'collectiveSing',
      component: () => import('../components/leaveList/collectiveSing')
    },
    // 审批请假  approval
    {
      path: '/approval',
      name: 'approval',
      component: () => import('../components/approval/approval')
    },
    // 审批请假  审批详情 approvalDetails
    {
      path: '/approvalDetails',
      name: 'approvalDetails',
      component: () => import('../components/approval/approvalDetails')
    },
    // 海报 posters
    {
      path: '/posters',
      name: 'posters',
      component: () => import('../components/posters/posters')
    },
    // 课程管理 curriculum
    {
      path: '/curriculum',
      name: 'curriculum',
      component: () => import('../components/curriculum/curriculum')
    },
    // 课程管理 编辑课程 curriculumEdit
    {
      path: '/curriculumEdit',
      name: 'curriculumEdit',
      component: () => import('../components/curriculum/curriculumEdit')
    },
    // 消息管理  message
    // {
    //   path: '/message',
    //   name: 'message',
    //   component: () => import('../components/message/message')
    // },
    // 消息管理
    {
      path: '/message',
      name: 'message',
      component: () => import('../components/message') // 消息管理首页
    },
    {
      path: '/message/course',
      name: 'courseMessage',
      component: () => import('../components/message/courseMessage') // 课程消息
    },
    {
      path: '/message/ordinary/:type',
      name: 'ordinaryMessage',
      component: () => import('../components/message/ordinaryMessage') // 普通消息
    },
    {
      path: '/message/send',
      name: 'sendMessage',
      component: () => import('../components/message/sendMessage') // 发送通知
    }
  ]
})
